var t = require("../../utils/util2"), a = null;

Page({
    data: {
        animated2: "",
        animated1: "",
        xsI: 1,
        xsaa: 1,
        img: "https://wq.qyyh.xyz/xcx/xcxtz/wm/sl.png",
        global_top: "28px",
        current: "",
        isFirst: !0,
        processing: !1,
        act: 0,
        list: [ "吃土", "多少斤了你心里没数吗", "看看兜里有多少钱", "我说吃啥你也不会吃", "小浣熊干脆面", "西北风", "最便宜的", "🐂🥩", "💣🐔", "🍡", "去吃米其林..", "修仙", "明天再吃", "蹭饭", "鲱🐟罐头", "吃啥啊，健身去", "饿一天", "别吃小面条", "老八秘制小汉堡", "吃狗粮", "奥利..奥", "吃..个教训", "🥗沙拉", "酸菜鱼", "披萨" ],
        xs: [ "赶高铁，点了一份外卖，结果一直没到，我跟商家说取消吧，我高铁时间到了，商家：我通知下骑手，做好追高铁的准备...", "在e了么点了份外卖，半个小时过去了还没送到，我发消息给骑手问什么原因？ 骑手：雨太大，送不了，推荐您点隔壁美团... 我：美团能送？ 骑手：对呀，他们要钱不要命的...", "我：麻烦帮我带罐可乐。 骑手：好的，带几瓶？ 我：带两瓶，一瓶给你。 骑手：好的，那我要1.5L的...", "出差到重庆，点了份外卖，结果外卖小哥就在我发他的位置周边画圈圈，我一个电话过去问他什么意思？小哥说他迷路了...", "电话给外面小哥，我：你怎么回事呀？ 骑手：在你小区楼下被一条狗拦住了，我一动它就咬。 我：我不信，你动一下试试？ 骑手：好，你听着哈，汪汪汪...汪汪汪...", "今天参加了个电动车竞速比赛，毫无意外的拿了冠军，颁奖的时候主持人问我技术在哪练的？ 我：都是自学成才，因为我是送外卖的...", "有一小哥点了一份不麻不辣的麻辣烫，外卖小哥送的有点儿迟了，在门口拿着单子说.不好意思啊，你要的不麻不辣的麻辣烫现在也不烫了。", "这年头，能在宿舍，公司楼下默默等着你，给你送上温热的早饭午饭晚饭，不管严寒酷暑刮风下雨总会很耐心的男人——只会是送外卖的。", "一天中午我们寝室大哥打电话叫了份外卖，隔了很久了还没送来。于是就又打过去想催催，结果发现自己手机竟然停机了。在大哥到处找人交话费的时候，他电话响了，是那个送外卖的！是的，送外卖的为了找到他，给他交了10块话费……" ],
        miniData: [ {
            appId: "wxece3a9a4c82f58c9",
            path: "taoke/pages/shopping-guide/index?scene=LkHJnku"
        }, {
            appId: "wxde8ac0a21135c07d",
            path: "/index/pages/h5/h5?lch=cps:waimai:5:65c5f4b9271221c79eae104d969a48a3:1176jutuike961222:2:85459&f_userId=1&weburl=https%3A%2F%2Fclick.meituan.com%2Ft%3Ft%3D1%26c%3D1%26p%3DOWMpZ-uzIFOVe6JyOONs3dXuqV0qcAf-r-KCvHdXiNcVucFhoPr6Y2B7CqCX7gVgdRqNMEWVUcDtP1wPOsj491ga0wUMVdVuDDDlucLNN8Uv9toWPRM0vBlP9o577MHIpJyaSSOJgPq7w9L6zxoCMr9flUMlq715cIccDqIgUtRJ05lVJpGbY-EaXJjdLZhrjzoDiKSW-u2nbkbIXwdZPioxb4lv5ani78DZ_XOrZAFMn8KKBS_uHEQiLKrx9pvtaZgRCZE2TP83xC_gDeIfpSVIt5JLylxtjEyqcEHg3YFZYolsyeKiEVXdOJzVu_MZ9S1R4GMUMZxPkA6DI-wCnwSY21d_qdlukNeoTDKu5fQum_Ir0knomwOvIUTQVX9pxnc5dwp-UyA_dcOPE5ohiR4LKbhdcx9Dc7OMnLM8VSnbQkF8i5Au-Eh0nJMIuN2a_Nhfd4sPFZnOfLToaP2QeWghngG2u0hL1ESMX8Ed6xg8pVYSdeIEaCNiSmVwtPMOWOg39r4P-lF4tamOGBxyiKqFftAe-WyxkhXzmEANuQkktzXcED1DWXAK4z75rwjq_L3VGD_OKziPPAmjGEDkclexSKAoIYQonJ78Ud850QX3oHqKVLa81yjWFfXUT5T_Bvdg2nY8fD5VOcKZJpfJEsQ3MFVxF02xuZJVYHwaPu5fABry8pE9Rkqp-Ug9YyJNI2L6za8FbjTpB681UfQKsVAOOLK7Mh3C8suN-AT_Cr3GkuUpOCqg86fA7a_JkbjFj8CNp0-cCmMJ-m29f7lQyA&f_token=1"
        }, {
            appId: "wxece3a9a4c82f58c9",
            path: "ele-recommend-price/pages/guest/index?inviterId=171d6d&chInfo=ch_wechat_chsub_Card&_ltracker_f=tjyj1_wx_banner3"
        }, {
            appId: "wxde8ac0a21135c07d",
            path: "/index/pages/h5/h5?lch=mhqIykekFEV63u81zLSTaQViQ&noshare=1&f_userId=0&f_openId=0&f_token=0&weburl=https%3A%2F%2Fdpurl.cn%2FGgV6SGLz"
        }, {
            appId: "wxece3a9a4c82f58c9",
            path: "pages/sharePid/web/index?scene=https://s.click.ele.me/dTQ3fku"
        }, {
            appId: "wxde8ac0a21135c07d",
            path: " /index/pages/h5/h5?lch=cps:waimai:5:65c5f4b9271221c79eae104d969a48a3:1176jutuike961222:4:85459&f_userId=1&weburl=https%3A%2F%2Fclick.meituan.com%2Ft%3Ft%3D1%26c%3D1%26p%3DOWMpZ-uzIFOVe6JyOONs3cgFtCGIpBffprPipc5RY4y3c9ZAu2sbi_gqdBrxnthZMRik0GP-SGoklojXrXk70e6DWHUyuki_chxiUvQebPZyHCxDtprIdtSrW0g4EzWlhs78HFbN3xTH_Z-sRNliSr5WkWxWyDCeBHsi8pT3V-U4Y6pwpY6npqt14bl6K9kyEj9T8inlU02Y1vYtn_ZCE7bgwrzzslvjZ4vgZ3cgI8Fp-uLvrr_HWeqoR4rldcQSW-7MWYgWZpq6a5r3lpXwSquH16h3KfPgSpccYo3dEOuzh9HeN5VEnaHsceV0a__p2LknlUVLUmK3ML7Cm7WYHAzHVNuZqaCvfJZEOeYbJbAF2hdEt-31tRkXVy_dLEypznNACVg5aj-AuVfsF4aGfwJXtndPqSQD5depW_wM65AMltmvLH7ifb8RLyuZ6t-CMHvOnQK9aOTJ1EAjD0CCmnFtitR17nbEwhsKLEK0QHmuqGhdPV8I_0EHTaVK9Bc2RKSd8jXJmlVjcSOGcymlNRRWMFbYS7Wt3W0epuCGK7TtI5xtxoemBTUG-dHcBbx__b26kI__YKZumFj2y3hnnjF2p_gGBmfZz8W5J_-Pe7sSoc6u36Q9TPnejD21BhDZrT7KKnFfSysNcuElCF_TKK-g1Il1N7nbBq4PYHx30ghLwRUT_qbuNCc_oRaQgdSGPQ6BgCRdDOq-N4grwqfS2cGpbUjjdcuj7It346cVQsRWTGveIVQe56K2AssnnjCJApTYp2vNnB_QL-m-2QEF76_VrCFyB4zD5UY9jyE4jnBgbuTP0PYFpmcCM3q9z9ox&f_token=1"
        } ]
    },
    onShareAppMessage: function(t) {
        var a = [ {
            title: "美团饿了么大额红包，每日可领！",
            path: "/pages/index/index"
        }, {
            title: "吃了这么多年外卖，你知道这个秘密吗？",
            path: "/pages/index/index"
        }, {
            title: "这样点外卖，一年省下好多钱",
            path: "/pages/index/index"
        }, {
            title: "点外卖前先领券，吃霸王餐",
            path: "/pages/index/index"
        }, {
            title: "美团饿了么内部优惠券，手慢无",
            path: "/pages/index/index"
        }, {
            title: "点外卖不用优惠券，你就out了",
            path: "/pages/index/index"
        }, {
            title: "外卖不为人知的秘密，点这解密",
            path: "/pages/index/index"
        }, {
            title: "震惊！小伙点外卖竟然花了1分钱",
            path: "/pages/index/index"
        }, {
            title: "从这点外卖，你也可以吃霸王餐",
            path: "/pages/index/index"
        } ], e = a[Math.floor(Math.random() * a.length)];
        return e.imageUrl = "/cp/mf.png", e;
    },
    onShareTimeline: function(t) {
        var a = [ {
            title: "美团饿了么大额红包，每日可领！",
            path: "/pages/index/index"
        }, {
            title: "吃了这么多年外卖，你知道这个秘密吗？",
            path: "/pages/index/index"
        }, {
            title: "这样点外卖，一年省下好多钱",
            path: "/pages/index/index"
        }, {
            title: "点外卖前先领券，吃霸王餐",
            path: "/pages/index/index"
        }, {
            title: "美团饿了么内部优惠券，手慢无",
            path: "/pages/index/index"
        }, {
            title: "点外卖不用优惠券，你就out了",
            path: "/pages/index/index"
        }, {
            title: "外卖不为人知的秘密，点这解密",
            path: "/pages/index/index"
        }, {
            title: "震惊！小伙点外卖竟然花了1分钱",
            path: "/pages/index/index"
        }, {
            title: "从这点外卖，你也可以吃霸王餐",
            path: "/pages/index/index"
        } ], e = a[Math.floor(Math.random() * a.length)];
        return e.imageUrl = "/cp/mf.png", e;
    },
    touchStart: function(t) {
        var a = t.changedTouches[0].x, e = t.changedTouches[0].y;
        ctx.save(), ctx.beginPath(), ctx.clearRect(a, e, 10, 10), ctx.restore();
    },
    bindViewTap: function() {
        wx.navigateTo({});
    },
    morexh: function() {
        var a = (0, t.getNum)(0, this.data.xs.length - 1);
        this.setData({
            xsI: a
        });
    },
    onLoad: function() {
        var a = this, e = 0;
        setInterval(function() {
            ++e % 4 == 0 ? a.setData({
                animated2: "swing",
                animated1: ""
            }) : e % 4 == 2 ? a.setData({
                animated2: "",
                animated1: "swing"
            }) : a.setData({
                animated2: "",
                animated1: ""
            });
        }, 1200), this.setData({
            xsI: (0, t.getNum)(0, this.data.xs.length - 1, this)
        }), wx.getSystemInfo({
            success: function(t) {
                console.log(t.platform), console.log(t.statusBarHeight);
                var e = t.statusBarHeight + 4;
                "android" == t.platform.toLowerCase() && (e += 4), a.setData({
                    global_top: e + 20 + "px"
                });
            }
        });
    },
    onRandom: function() {
        var e = this;
        if (a) return clearInterval(a), a = null, void this.setData({
            processing: !1
        });
        a = setInterval(function() {
            e.setData({
                current: e.data.list[(0, t.getNum)(0, e.data.list.length - 1)]
            });
        }, 100), this.setData({
            processing: !0,
            isFirst: !1
        });
    },
    goact0: function() {
        this.setData({
            act: 0
        });
    },
    goact1: function() {
        this.setData({
            act: 1
        });
    },
    wm1: function() {
        wx.navigateToMiniProgram(this.data.miniData[0]);
    },
    wm2: function() {
        wx.navigateToMiniProgram(this.data.miniData[1]);
    },
    wm3: function() {
        wx.navigateToMiniProgram(this.data.miniData[2]);
    },
    wm4: function() {
        wx.navigateToMiniProgram(this.data.miniData[3]);
    },
    wm5: function() {
        wx.navigateToMiniProgram(this.data.miniData[4]);
    },
    goxr: function() {
        wx.navigateTo({
            url: "/pages/makee/makee"
        });
    },
    wm6: function() {
        wx.navigateToMiniProgram(this.data.miniData[5]);
    }
});